TRootModel
The ViewModel for the main screen.
IdeaBlade Application Framework
FrameworkBootstrapper<TRootModel> Class
Members  Example  See Also  Send Feedback
Caliburn.Micro.Extensions Namespace : FrameworkBootstrapper<TRootModel> Class



Extend from FrameworkBootstrapper<TRootModel> to create your own Application Bootstrapper.

Object Model

FrameworkBootstrapper<TRootModel> Class

Syntax

Visual Basic (Declaration) 
Public Class FrameworkBootstrapper(Of TRootModel) 
   Inherits FrameworkBootstrapper
Visual Basic (Usage)Copy Code
Dim instance As FrameworkBootstrapper(Of TRootModel)
C# 
public class FrameworkBootstrapper<TRootModel> : FrameworkBootstrapper 
C++/CLI 
generic<typename TRootModel>
public ref class FrameworkBootstrapper : public FrameworkBootstrapper 

Type Parameters

TRootModel
The ViewModel for the main screen.

Example

Demonstrates how to create a Bootstrapper for a Development Harness
C#Copy Code
public class AppBootstrapper : FrameworkBootstrapper<HarnessViewModel>
{
    // Add additional logic if required. 
}
Demonstrates how to add the Bootstrapper as a static resource to trigger the bootstrapping of the application.
XAMLCopy Code
<Application x:Class="SampleApplication.App" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:app="clr-namespace:SampleApplication;assembly=SampleApplication.Harness.SL">
    <Application.Resources>
        <app:AppBootstrapper x:Key="Bootstrapper" />
    </Application.Resources>
</Application>

Inheritance Hierarchy

System.Object
   Caliburn.Micro.Bootstrapper
      Caliburn.Micro.Extensions.FrameworkBootstrapper
         Caliburn.Micro.Extensions.FrameworkBootstrapper<TRootModel>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.